package com.leanin.form.service;

import com.leanin.form.model.request.EduFormDTO;
import com.leanin.form.model.request.FormQueryDTO;
import com.leanin.form.model.response.CommonResponseResult;
import com.leanin.form.model.response.QueryResponseResult;
import com.leanin.form.model.response.ResponseResult;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author CPJ.
 * @date 2019/6/17.
 * @time 9:56.
 */
public interface EduFormService {

    CommonResponseResult addEduForm(EduFormDTO eduFormDTO);

    ResponseResult updateEduForm(EduFormDTO eduFormDTO);

    QueryResponseResult findByParam(FormQueryDTO formQueryDTO);

    CommonResponseResult findById(Long formId);

    ResponseResult addDownLoadCount(Long formId);

    ResponseResult deleteForm(Long formId);

    QueryResponseResult findByAdvice(Integer page,Integer pageSize,String advice);

    QueryResponseResult findByAdviceList(Integer page,Integer pageSize,String advices);
}
